package com.fgba.express.data.service;

import com.fgba.express.core.service.ICrudService;
import com.fgba.express.data.dto.RoleDto;
import com.fgba.express.data.entity.Role;
import com.fgba.express.data.search.RoleSearch;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;


/**
 * <p>
 * 角色 服务类
 * </p>
 *
 * @author fgba
 * @since 2022-02-24
 */
public interface IRoleService extends ICrudService<Role, RoleDto, RoleSearch> {
    @Override
    boolean removeById(Serializable id);

    @Override
    boolean removeByIds(Collection<? extends Serializable> idList);

    boolean assignMenu(Long roleId, List<Long> menuIds);

    List<Role> getRolesByUserId(Long userId);
}
